﻿@using SimpleScrum.Areas.Scrum.Models
@using SimpleScrum.Helpers
@using SimpleScrum.Utils
@{
    var organizationModel = new OrganizationModel();
    var organizations = organizationModel.GetOrganizations();
}
<a class="menu-toggler" id="menu-toggler" href="#">
        <span class="menu-text"></span>
    </a>
<div class="sidebar" id="sidebar">
    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
            <button class="btn btn-small btn-success" onclick="window.location.href='';">
                <i class="icon-twitter"></i>
            </button>
            <button class="btn btn-small btn-info" onclick="window.location.href='https://www.facebook.com/SimpleScrum';">
                <i class="icon-facebook"></i>
            </button>
            <button class="btn btn-small btn-warning" onclick="window.location.href='@Url.Action("Index", "Team")';">
                <i class="icon-group"></i>
            </button>
            <button class="btn btn-small btn-danger" onclick="window.location.href='https://www.facebook.com/SimpleScrum';">
                <i class="icon-google-plus"></i>
            </button>
        </div>
        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>
            <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span>
            <span class="btn btn-danger"></span>
        </div>
    </div>
    @if (organizations.Count != 0)
    {
        <ul class="nav nav-list">
            <li>
                <a href="@Url.Action("Index", "DashBoard")">
                    <i class="icon-dashboard"></i>
                    <span class="menu-text">Dashboard </span>
                </a>
            </li>
            <li>
                <a href="@Url.Action("Index", "UserStory", new {projectId = Client.Instance.CurrentProjectId})">
                    <i class="icon-tags"></i>
                    <span class="menu-text">User Story </span>
                </a>
            </li>
            <li>
                <a href="@Url.Action("Index", "Sprint", new {projectId = Client.Instance.CurrentProjectId})">
                    <i class="icon-list"></i>
                    <span class="menu-text">Sprints </span>
                </a>
            </li>
            <li>
                <a href="@Url.Action("Index", "BackLog", new {projectId = Client.Instance.CurrentProjectId})">
                    <i class="icon-tasks"></i>
                    <span class="menu-text">Backlogs</span>
                </a>
            </li>
            <li>
                <a href="#" class="dropdown-toggle">
                    <i class="icon-desktop"></i>
                    <span class="menu-text"> New Forms </span>

                    <b class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <li>
                        <a href="@Url.Action("New", "UserStory")">
                            <i class="icon-double-angle-right"></i>
                            <span class="menu-text">New UserStory </span>
                        </a>
                    </li>
                    <li>
                        <a href="@Url.Action("New", "BackLog")">
                            <i class="icon-double-angle-right"></i>
                            <span class="menu-text">New BackLog </span>
                        </a>
                    </li>
                    <li>
                        <a href="@Url.Action("New", "Sprint")">
                            <i class="icon-double-angle-right"></i>
                            <span class="menu-text">New Sprint </span>
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="@Url.Action("Index", "Team")">
                    <i class="icon-group"></i>
                    <span class="menu-text">Teams</span>
                </a>
            </li>
            <li>
                <a href="#">
                    <i class="icon-screenshot"></i>
                    <span class="menu-text">Reporting</span>
                </a>
            </li>
            @*<li>
                <a href="#">
                    <i class="icon-list-alt"></i>
                    <span class="menu-text">Widgets</span>
                </a>
            </li>
            <li>
                <a href="#">
                    <i class="icon-calendar"></i>
                    <span class="menu-text">Calendar
                        <span class="badge badge-transparent tooltip-error" title="2&nbsp;Important&nbsp;Events">
                            <i class="icon-warning-sign red bigger-130"></i>
                        </span>
                    </span>
                </a>
            </li>*@
           
        </ul>
    }
    else
    {
        <ul class="nav nav-list">
            <li class="text-error text-error">&nbsp;&nbsp;Select your Default Project</li>
        </ul>
    }
    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left"></i>
    </div>
</div>